import React from 'react'
import usePublish from '../../../components/publish-manage/usePublish'
import PublishTable from '../../../components/publish-manage/PublishTable'
import { Button } from 'antd'



export default function Sunset() {
  const { dataSource, deleteNews } = usePublish(3)
  return (
    <div>
      <PublishTable dataSource={dataSource} button={(item) => <Button type='primary' danger onClick={() => deleteNews(item)}>删除</Button>}></PublishTable>
    </div>
  )
}
